package com.zimmur.app.mocolink.manage.web.common;

public enum StatusCodeEnum {
	//app请求返回码
	CODE000000("000000","操作成功"),
	CODE100000("100000","出现未知异常，操作失败"),
	CODE100001("100001","参数不全,请完善表单"),
	CODE100100("100100","删除类型失败——该类型下存在商品"),
	CODE100400("100400","该账号已存在，创建账号失败"),
	CODE100401("100401","该账号已存在，修改账号信息失败"),
	CODE200000("200000","您已经被踢出，请重新登录！"),
	CODE200401("200401","没有操作权限"),
	CODE200402("200402","请重新登录"),
	CODE200403("200403","账号已禁用"),
	CODE200404("200404","用户名或密码错误"),
	
	
	CODE320401("320401","该类型无子分类，不能启用"),
	
	
	CODE400401("400401","话题不存在"),
	CODE400402("400402","保存话题失败"),
	CODE401401("401401","常见问题不存在"),
	
	CODE410401("410401","订单数据异常！"),
	CODE410402("410402","订单已支付，请刷新页面后再试！"),
	CODE410403("410403","用户余额不足！"),
	CODE410404("410404","订单状态不正确，请刷新页面后再试！"),
	CODE410405("410405","退货数量大于购买数量，请重新核对退货数量！"),
	
	CODE420401("420401","售后单数据异常！"),
	CODE420402("420402","退款金额有误，请重新确认退款金额"),
	CODE420403("420403","退款金额不能大于订单付款金额"),
	CODE420404("420404","售后数据异常，订单不存在"),
	CODE420405("420405","退货数小于已签收数，修改失败"),
	CODE420406("420406","退货数大于购买数，修改失败"),

	CODE600401("600401","该等级下存在用户，不能删除"),
	CODE601401("601401","请选择用户"),
	CODE601402("601402","请选择等级"),
	CODE601403("601403","用户不存在"),
	CODE601404("601404","余额不足"),
	CODE601405("601405","数据异常"),
	
	CODE700401("700401","该账号已存在"),
	
	CODE710401("710401","该角色已使用，不能删除"),
	CODE710402("710402","角色不存在"),
	CODE710403("710403","该角色名已存在！"),
	
	;
	
	
	private final String code;
	private final String msg;
	
	private StatusCodeEnum(String code,String msg){
		this.code=code;
		this.msg=msg;
	}

	public String getCode() {
		return code;
	}

	public String getMsg() {
		return msg;
	}
	
	public static void main(String[] args) {
		StatusCodeEnum enum1 = StatusCodeEnum.CODE000000;
		System.out.println(enum1.getCode() + " "+ enum1.getMsg());
	}
}
